package com.hsd.znsh.repository;

import com.hsd.znsh.entity.Event;
import com.hsd.znsh.entity.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface EventRepository extends JpaRepository<Event,Integer> {

    List<Event> findByGatewaySnInAndReadStatusOrderByCreateDateTimeDesc(List<String> gatewaySns, Integer readStatus, Pageable pageable);
}
